package nix.tag;

import java.io.IOException;

import javax.servlet.jsp.JspContext;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.PageContext;
import javax.servlet.jsp.tagext.JspFragment;
import javax.servlet.jsp.tagext.JspTag;
import javax.servlet.jsp.tagext.SimpleTag;

public class MyTag1 implements SimpleTag {

	private PageContext pageContext;
	private JspFragment body;

	@Override
	public void doTag() throws JspException, IOException {
		pageContext.getOut().print("MyTag1");
	}

	@Override
	public JspTag getParent() {
		return null;
	}

	@Override
	public void setJspBody(JspFragment body) {
		this.body = body;
	}

	@Override
	public void setJspContext(JspContext context) {
		this.pageContext = (PageContext) context;
	}

	@Override
	public void setParent(JspTag arg0) {

	}

}
